package com.krmes.mes;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.KeyEvent;
import android.view.View;


public class HistoryActivity extends FragmentActivity implements View.OnClickListener{
    private FragmentData fragmentData;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_history);
        this.fragmentData = new FragmentData();
        getSupportFragmentManager().beginTransaction().replace(R.id.frame_main_his, this.fragmentData).commit();
    }

    @Override
    public void onClick(View v) {

    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {

        if (keyCode == KeyEvent.KEYCODE_BACK
                && event.getRepeatCount() == 0) {
            //do something...
            this.finish();
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }
}
